package com.tianji.learning.service;

import com.tianji.learning.domain.po.PointsBoard;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.query.PointsBoardQuery;
import com.tianji.learning.domain.vo.PointsBoardVO;

import java.util.List;

/**
 * <p>
 * 学霸天梯榜 服务类
 * </p>
 *
 * @author 东哥
 * @since 2024-06-29
 */
public interface IPointsBoardService extends IService<PointsBoard> {

    /**
     * 1、分页查询指定赛季的积分排行榜 （Day8 - 课堂）
     * @param query
     * @return
     */
    PointsBoardVO pageQueryPointsBoardBySeason(PointsBoardQuery query);

    /**
     * 根据赛季ID创建赛季表
     * @param seasonId
     */
    void createPointsBoardTableBySeasonId(Integer seasonId);

    List<PointsBoard> queryCurrentBoardList(String key, Integer pageNo, Integer pageSize);
}
